{{include template('public/header','admin')}}
<body>
    <div id="page-wrapper">
        <div class="row">
            <div class="col-lg-12">
                <fieldset>
                    <legend>{{$action}}{{L('site')}}</legend>
                    <form action="{{url($postUrl)}}" method="post" class="form-horizontal validform" id="cpform" name="cpform" role="form" autocomplete='off' >
                        <input type='hidden' name='siteid' value="{{$item['siteid']}}" />

                        <ul id="myTab" class="nav nav-tabs">
                            <li class="active"><a href="#base" data-toggle="tab">基本配置</a></li>
                            <li><a href="#seo" data-toggle="tab">SEO配置</a></li>
                            <li><a href="#pub" data-toggle="tab">模板风格配置</a></li>
                        </ul>
                        <div id="myTabContent" class="tab-content">
                            <div class="tab-pane fade in active" id="base"><br>
                                <div class="form-group">
                                    <label for="name" class="col-sm-2 control-label">{{L('site_name')}}</label>
                                    <div class="col-sm-10 form-inline">
                                        <input type="text" id="name" name='name' value="{{$item.name}}" maxlength="50" tabindex="2" class='form-control' datatype="*" nullmsg="请设置{{L('site_name')}}！"  placeholder="请输入{{L('site_name')}}" />
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="dirname" class="col-sm-2 control-label">{{L('site_dirname')}}</label>
                                    <div class="col-sm-10 form-inline">
                                        <input type="text" id="dirname" name='dirname' value="{{$item.dirname}}" maxlength="100" tabindex="3" class='form-control' datatype="*" nullmsg="请设置{{L('site_dirname')}}！"  placeholder="请输入{{L('site_dirname')}}"/>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="domain" class="col-sm-2 control-label">{{L('site_domain')}}</label>
                                    <div class="col-sm-10 form-inline">
                                        <input type="text" id="domain" name='domain' value="{{$item.domain}}" maxlength="255" tabindex="4" class='form-control' datatype="*" nullmsg="请设置{{L('site_dirname')}}！"  placeholder="请输入{{L('site_dirname')}}"/>
                                    </div>
                                </div>
                            </div>
                            <div class="tab-pane fade" id="seo"><br>
                                <div class="form-group">
                                    <label for="site_title" class="col-sm-2 control-label">{{L('site_site_title')}}</label>
                                    <div class="col-sm-10 form-inline">
                                        <input type="text" id="site_title" name='site_title' value="{{$item.site_title}}" maxlength="255" tabindex="5" class='form-control' datatype="*" nullmsg="请设置{{L('site_site_title')}}！"  placeholder="请输入{{L('site_site_title')}}"/>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="keywords" class="col-sm-2 control-label">{{L('site_keywords')}}</label>
                                    <div class="col-sm-10 form-inline">
                                        <input type="text" id="keywords" name='keywords' value="{{$item.keywords}}" maxlength="255" tabindex="6" class='form-control' datatype="*" nullmsg="请设置{{L('site_keywords')}}！"  placeholder="请输入{{L('site_keywords')}}" />
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="description" class="col-sm-2 control-label">{{L('site_description')}}</label>
                                    <div class="col-sm-10 form-inline">
                                        <input type="text" id="description" name='description' value="{{$item.description}}" maxlength="255" tabindex="7" class='form-control' datatype="*" nullmsg="请设置{{L('site_description')}}！"  placeholder="请输入{{L('site_description')}}"/>
                                    </div>
                                </div>
                            </div>
                            <div class="tab-pane fade" id="pub"><br>
                                <div class="form-group">
                                    <label for="template" class="col-sm-2 control-label">{{L('site_template')}}</label>
                                    <div class="col-sm-10 form-inline">
                                        <select name="template" class="form-control">
                                            {{foreach $theme_list as $val}}          
                                            <option value="{{$val}}" {{if $item["template"]==$val}} selected="selected" {{/if}}>{{$val}}</option>
                                            {{/foreach}}
                                        </select>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <input type='submit' name='dosubmit' class='btn  btn-default' value='{{L('submit')}}' />
                            </div>
                        </div>
                    </form>
                </fieldset>
            </div>
        </div>
    </div>
    <script type="text/javascript">
        $(function () {
            $(".validform").Validform({tiptype: 3, showAllError: true});
        });
    </script>
</body>
</html>